<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property int $uid 
 * @property int $main_uid 
 * @property int $type 任务类型
 * @property int $status 状态：0=进行中 1=已完成
 * @property array $content 执行的具体内容
 * @property int $total_count 需要执行的总数
 * @property int $success_count 已执行数量
 * @property int $fail_count 未执行数量
 * @property string $operator 操作者
 * @property \Carbon\Carbon $created_at 提交时间
 * @property \Carbon\Carbon $updated_at 更新时间
 */
class ChRoomTaskCenter extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_room_task_center';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'main_uid', 'type', 'status', 'content', 'total_count', 'success_count', 'fail_count', 'operator', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'main_uid' => 'integer', 'type' => 'integer', 'status' => 'integer', 'content' => 'array', 'total_count' => 'integer', 'success_count' => 'integer', 'fail_count' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
